
var Utility = require("../Utility/utility.js");
exports.smsRouter = function(router){


    //短信列表
    router.all('/sms/smslist',function(req,res){


        Utility.getMenuList(req,res,function(menulist){

            res.render('sms/smslist', {
                layout: 'pte/layout-pte',
                active: 'smslist',
                jscript: 'sms/sms',
                menulist:menulist,
                comparam:Utility.returnCommonParam(req,res)
            })



        })



    });

    //用户短信列表
    router.all('/sms/usersmslist',function(req,res){


        Utility.getMenuList(req,res,function(menulist){

            res.render('sms/usersmslist', {
                layout: 'pte/layout-pte',
                active: 'usersmslist',
                jscript: 'sms/sms',
                menulist:menulist,
                comparam:Utility.returnCommonParam(req,res)
            })



        })



    });




}
